package co.yixiang.huiMin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * <p>
 * 车辆入驻
 * </p>
 *
 * @author Author
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Entity
@TableName("car_manage")
public class CarManage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    @Column(name = "id")
    @ApiModelProperty("车辆入驻Id")
    private Integer id;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    @ApiModelProperty("用户id")
    private Integer userId;

    /**
     * 姓名
     */
    @Column(name = "name")
    @ApiModelProperty("姓名")
    private String name;

    /**
     * 车辆类型id
     */
    @Column(name = "car_id")
    @ApiModelProperty("车辆类型id")
    private Integer carId;

    /**
     * 手机号
     */
    @Column(name = "phone")
    @ApiModelProperty("手机号")
    private String phone;

    /**
     * 驾照图片
     */
    @Column(name = "driver_img")
    @ApiModelProperty("驾照图片")
    private String driverImg;

    /**
     * 驾照图片
     */
    @Column(name = "travel_img")
    @ApiModelProperty("行驶证照片")
    private String travelImg;

    /**
     * 车辆图片
     */
    @Column(name = "cars_img")
    @ApiModelProperty("车辆图片")
    private String carsImg;

    /**
     * 省
     */
    @Column(name = "province")
    @ApiModelProperty("省")
    private String province;

    /**
     * 省code
     */
    @Column(name = "province_code")
    @ApiModelProperty("省code")
    private String provinceCode;

    /**
     * 市
     */
    @Column(name = "city")
    @ApiModelProperty("市")
    private String city;

    /**
     * 市code
     */
    @Column(name = "city_code")
    @ApiModelProperty("市code")
    private String cityCode;

    /**
     * 行驶证图片
     */
    @Column(name = "location_address")
    @ApiModelProperty("定位")
    private String locationAddress;

    /**
     * 区
     */
    @Column(name = "district")
    @ApiModelProperty("区")
    private String district;

    /**
     * 区code
     */
    @Column(name = "district_code")
    @ApiModelProperty("区code")
    private String districtCode;

    /**
     * 详细地址
     */
    @Column(name = "detailed")
    @ApiModelProperty("详细地址")
    private String detailed;

    /**
     * 审核状态(0.未审核1.通过2.不通过)
     */
    @Column(name = "car_audit")
    @ApiModelProperty("审核状态(0.未审核1.通过2.不通过)")
    private Integer carAudit;

    /**
     * 不通过原因
     */
    @Column(name = "no_reason")
    @ApiModelProperty("不通过原因")
    private String noReason;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 是否删除(0.否1.是)
     */
    @Column(name = "del_flag")
    @ApiModelProperty("是否删除(0.否1.是)")
    private Integer delFlag;

    /**
     * 车辆分类名称
     */
    @TableField(exist = false)
    @Transient
    @ApiModelProperty("车辆分类名称")
    private String carTypeName;


}
